package ss.pku.jsa.type.io;

import java.io.IOException;
import java.io.PrintWriter;

public class AnnotationWriter {
	PrintWriter out;

	public AnnotationWriter(PrintWriter out) {
		this.out = out;
	}

	public void comment(String c) throws IOException {
		c = "#" + c.replace("\n", "\n#");
		this.out.println(c);
	}

	public void write(QSig m) throws IOException {
		m.write(this.out);
	}

	public void flush() {
		this.out.flush();
	}
}
